<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@page import="bean.News"%>


<html>
	<head>

		<title>山商基金会后台管理</title>
		<link rel="shortcut icon" href="../images/titleico.ico" />
		<link href="../css/myA.css" type="text/css" rel="stylesheet">
		<script type="text/javascript" src="../fckeditor/fckeditor.js"></script>
	</head>

	<body>
		<table width="960" cellpadding="0" cellspacing="0" align="center"
			border="0" bgcolor="#cfcfcf">
			<tr>
				<td>
					<table width="960" cellpadding="0" cellspacing="0" align="center">
						<tr>
							<td>
								<div style="color: blue; font-size: 28;" align="center">
									后 台 管 理
								</div>
							</td>
						</tr>
						<tr>
							<td>
								<hr color="#0033FF" size="2" />
							</td>
						</tr>
					</table>
				</td>
			</tr>
			<tr align="left">
				<td width="960">
					<table width="960" cellpadding="0" cellspacing="0" border="0">
						<tr valign="top">
							<td width="150">
								<table width="150" cellpadding="0" cellspacing="0" border="1">
									<!--									<tr>-->
									<!--										<td>-->
									<!--											<div style="font: 20">-->
									<!--												管理员你好-->
									<!--											</div>-->
									<!--										</td>-->
									<!--									</tr>-->
									<tr>
										<td align="center">
											<hr color="#0033FF" />
											<font color="blue">功能菜单</font>
											<hr color="#0033FF" />
										</td>
									</tr>
									<tr>
										<td>
											<table width="150" height="660">
												<tr>
													<td valign="top">
														<table width="150" cellpadding="10" cellspacing="0">
															<tr>
																<td align="center" class="style1">
																	<a href="../chuliServlet?choice_id=1&message=">>>图片新闻</a>
																</td>
															</tr>
															<tr>
																<td align="center">
																	<a href="../chuliServlet?choice_id=2&message=">>>新闻动态</a>
																</td>
															</tr>
															<tr>
																<td align="center">
																	<a href="../chuliServlet?choice_id=3&message=">>>资助信息</a>
																</td>
															</tr>
															<tr>
																<td align="center">
																	<a href="../chuliServlet?choice_id=4&message=">>>捐赠统计</a>
																</td>
															</tr>
															<tr>
																<td align="center">
																	<a href="../chuliServlet?choice_id=5&message="">>>获赠感言</a>
																</td>
															</tr>
															<tr>
																<td align="center">
																	<a href="../chuliServlet?choice_id=6&message="">>>管理办法</a>
																</td>
															</tr>
															<tr>
																<td align="center">
																	<a href="../chuliServlet?choice_id=7&message="">>>年度报告</a>
																</td>
															</tr>

															<tr>
																<td align="center">
																	<a href="../chuliServlet?choice_id=8&message="">>>基金项目</a>
																</td>
															</tr>
															<tr>
																<td align="center">
																	<a href="../chuliServlet?choice_id=9&message="">>>校园建设</a>
																</td>
															</tr>
														</table>
													</td>
												</tr>
											</table>
										</td>
									</tr>
								</table>
							</td>
							<td width="100%">
								<table width="100%" cellpadding="0" cellspacing="0" border="1"
									height="720">
									<tr valign="top" height="100">
										<%
											String[] title = { "图片新闻", "新闻动态", "资助信息", "捐赠统计", "获赠感言", "管理办法",
													"年度报告", "基金项目", "校园建设" };
											Object obj = session.getAttribute("choice_id");
											if (obj != null && !"".equals(obj)) {
												int id = Integer.parseInt((String) obj);
												session.setAttribute("title_show", title[id - 1]);
											}
										%>
										<td>
											<jsp:include page="findInformation.jsp"></jsp:include>
										</td>
									</tr>
									<c:if test="${find_insert_id == 1}">
										<tr valign="top">
											<td width="100%">
												<%
													//String id = request.getParameter("id");
														Object obj1 = session.getAttribute("choice_id");
														if (obj != null) {
															String id = (String) obj1;
															if ("1".equals(id)) {
																session.setAttribute("choice_id", "1");
												%>
												<jsp:include page="show/photo_news.jsp"></jsp:include>
												<%
													} else if ("2".equals(id)) {
																session.setAttribute("choice_id", "2");
												%>
												<jsp:include page="show/news.jsp"></jsp:include>
												<%
													} else if ("3".equals(id)) {
																session.setAttribute("choice_id", "3");
												%>
												<jsp:include page="show/funding_information.jsp"></jsp:include>
												<%
													} else if ("4".equals(id)) {
																session.setAttribute("choice_id", "4");
												%>
												<jsp:include page="show/donate.jsp"></jsp:include>
												<%
													} else if ("5".equals(id)) {
																session.setAttribute("choice_id", "5");
												%>
												<jsp:include page="show/thanks.jsp"></jsp:include>
												<%
													} else if ("6".equals(id)) {
																session.setAttribute("choice_id", "6");
												%>
												<jsp:include page="show/manage.jsp"></jsp:include>
												<%
													} else if ("7".equals(id)) {
																session.setAttribute("choice_id", "7");
												%>
												<jsp:include page="show/annual_report.jsp"></jsp:include>
												<%
													} else if ("8".equals(id)) {
																session.setAttribute("choice_id", "8");
												%>
												<jsp:include page="show/fundraising_project.jsp"></jsp:include>
												<%
													} else if ("9".equals(id)) {
																session.setAttribute("choice_id", "9");
												%>
												<jsp:include page="show/campus_construction.jsp"></jsp:include>
												<%
													}
														}
												%>

											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 2}">
										<tr>
											<td valign="top">
												<jsp:include page="insert.jsp"></jsp:include>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 3}">
										<tr>
											<td valign="top">
												<jsp:include page="modify.jsp"></jsp:include>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 4}">
										<tr valign="top" align="center">
											<td style="padding-top: 30">
												<div style="color: green; font-size: 20">
													数据修改成功
												</div>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 5}">
										<tr valign="top" align="center">
											<td style="padding-top: 30">
												<div style="color: red; font-size: 20">
													数据修改失败,很可能是数据库的原因，请检查数据库，如果数据库正常，请重新操作！
													<%
													session.setAttribute("find_insert_id", 3);
												%>
													<a href="guanli_1.jsp?id="
														<%=(String) session.getAttribute("choice_id")%>>返回上一页</a>
												</div>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 6}">
										<tr valign="top">
											<td style="padding-top: 15">
												<jsp:include page="modifyDonate.jsp"></jsp:include>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 7}">
										<tr valign="top" align="center">
											<td style="padding-top: 30">
												<div style="color: green; font-size: 20">
													数据修改成功
												</div>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 8}">
										<tr valign="top" align="center">
											<td style="padding-top: 30">
												<div style="color: red; font-size: 20">
													数据修改失败,很可能是数据库的原因，请检查数据库，如果数据库正常，请重新操作！
													<%
													session.setAttribute("find_insert_id", 6);
													%>
													<a href="guanli_1.jsp?id="
														<%=(String) session.getAttribute("choice_id")%>>返回上一页</a>
												</div>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 9}">
										<tr valign="top">
											<td style="padding-top: 15">
												<jsp:include page="insertDonate.jsp"></jsp:include>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 10}">
										<tr valign="top" align="center">
											<td style="padding-top: 30">
												<div style="color: green; font-size: 20">
													数据插入成功
												</div>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 11}">
										<tr valign="top" align="center">
											<td style="padding-top: 30">
												<div style="color: red; font-size: 20">
													数据插入失败,很可能是数据库的原因，请检查数据库，如果数据库正常，请重新操作！
													<%
													session.setAttribute("find_insert_id", 9);
													%>
													<a href="guanli_1.jsp?id="
														<%=(String) session.getAttribute("choice_id")%>>返回上一页</a>
												</div>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 12}">
										<tr valign="top" align="center">
											<td style="padding-top: 30">
												<div style="color: green; font-size: 20">
													数据插入成功
												</div>
											</td>
										</tr>
									</c:if>
									<c:if test="${find_insert_id == 13}">
										<tr valign="top" align="center">
											<td style="padding-top: 30">
												<div style="color: red; font-size: 20">
													数据插入失败,很可能是数据库的原因，请检查数据库，如果数据库正常，请重新操作！
													<%
													session.setAttribute("find_insert_id", 3);
													%>
													<a href="guanli_1.jsp?id="
														<%=(String) session.getAttribute("choice_id")%>>返回上一页</a>
												</div>
											</td>
										</tr>
									</c:if>
								</table>
							</td>
						</tr>
					</table>
				</td>
			</tr>
		</table>
		<!--设置编辑框的内容为空-->		
		<%
			session.setAttribute("insert_title","");
			session.setAttribute("insert_content","");
		%>
	</body>
</html>
